﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class ActsAndBillsModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private int _Actsandbillsid;
        private DateTime _DateReceived;
        private int _MinistryID;
        private string _sMinistryName;
        private string _SubjectTitleofbilActRef;
        private DateTime _DatetoAG;
        private DateTime _DatereceivedfromAG;
        private DateTime _DatesendMSignature;
        private DateTime _DatesendCS;
        private DateTime _DatesendHEsignature;
        private DateTime _DatesignedHE;
        private DateTime _DatesendNA;
        private DateTime _DatesendP;
        private DateTime _DatesendGazetting;
        private DateTime _DateGazetted;
        private DateTime _DatereceivedfromHE;
        private Boolean _Sealed;
        private string _Referencenumber;
        private string _GeneralComments;
        private DateTime _Dateentered;
        private string _Enteredby;
        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        
        private void OnPropertyChanged(String property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }

        public int iActsandbillsid
        {
            get
            {
                return _Actsandbillsid;
            }
            set
            {
                _Actsandbillsid = value;
                OnPropertyChanged("iActsandbillsid");
            }
        }

        public string sMinistryName
        {
            get
            {
                return _sMinistryName;
            }
            set
            {
                _sMinistryName = value;
                OnPropertyChanged("sMinistryName");
            }
        }
        
        public DateTime DatesendP
        {
            get
            {
                return _DatesendP;
            }
            set
            {
                _DatesendP = value;
                OnPropertyChanged("DatesendP");
            }
        }

        public DateTime DatesendNA
        {
            get
            {
                return _DatesendNA;
            }
            set
            {
                _DatesendNA = value;
                OnPropertyChanged("DatesendNA");
            }
        }

        public DateTime DatesendHEsignature
        {
            get
            {
                return _DatesendHEsignature;
            }
            set
            {
                _DatesendHEsignature = value;
                OnPropertyChanged("DatesendHEsignature");
            }
        }


        public DateTime DatesendCS
        {
            get
            {
                return _DatesendCS;
            }
            set
            {
                _DatesendCS = value;
                OnPropertyChanged("DatesendCS");
            }
        }

        public DateTime DatesendMSignature
        {
            get
            {
                return _DatesendMSignature;
            }
            set
            {
                _DatesendMSignature = value;
                OnPropertyChanged("DatesendMSignature");
            }
        }

        public DateTime DatereceivedfromAG
        {
            get
            {
                return _DatereceivedfromAG;
            }
            set
            {
                _DatereceivedfromAG = value;
                OnPropertyChanged("DatereceivedfromAG");
            }
        }

        public DateTime DatetoAG
        {
            get
            {
                return _DatetoAG;
            }
            set
            {
                _DatetoAG = value;
                OnPropertyChanged("DatetoAG");
            }
        }

        public string SubjectTitleofbilActRef
        {
            get
            {
                return _SubjectTitleofbilActRef;
            }
            set
            {
                _SubjectTitleofbilActRef = value;
                OnPropertyChanged("SubjectTitleofbilActRef");
            }
        }

        public int MinistryID
        {
            get
            {
                return _MinistryID;
            }
            set
            {
                _MinistryID = value;
                OnPropertyChanged("MinistryID");
            }
        }
         
        public DateTime Dateentered
        {
            get
            {
                return _Dateentered;
            }
            set
            {
                _Dateentered = value;
                OnPropertyChanged("Dateentered");
            }
        }

        public DateTime DatesignedHE
        {
            get
            {
                return _DatesignedHE;
            }
            set
            {
                _DatesignedHE = value;
                OnPropertyChanged("DatesignedHE");
            }
        }

        public DateTime DatesendGazetting
        {
            get
            {
                return _DatesendGazetting;
            }
            set
            {
                _DatesendGazetting = value;
                OnPropertyChanged("DatesendGazetting");
            }
        }

        public DateTime DateGazetted
        {
            get
            {
                return _DateGazetted;
            }
            set
            {
                _DateGazetted = value;
                OnPropertyChanged("DateGazetted");
            }
        }

        public DateTime DatereceivedfromHE
        {
            get
            {
                return _DatereceivedfromHE;
            }
            set
            {
                _DatereceivedfromHE = value;
                OnPropertyChanged("DatereceivedfromHE");
            }
        }
        public bool Sealed
        {
            get
            {
                return _Sealed;
            }
            set
            {
                _Sealed = value;
                OnPropertyChanged("_Sealed");
            }
        }

        public string Referencenumber
        {
            get
            {
                return _Referencenumber;
            }
            set
            {
                _Referencenumber = value;
                OnPropertyChanged("Referencenumber");
            }
        }


        public string GeneralComments
        {
            get
            {
                return _GeneralComments;
            }
            set
            { 
                    _GeneralComments = value;

                    OnPropertyChanged("GeneralComments"); 
            }
        }

        public string Enteredby
        {

            get
            {
                return _Enteredby;
            }
            set
            {
                _Enteredby = value;
                OnPropertyChanged("Enteredby");
            }
        }

        public DateTime DateReceived
        {

            get
            {
                return _DateReceived;
            }
            set
            {
                _DateReceived = value;
                OnPropertyChanged("DateReceived");
            }
        } 
   
         
    }
}